param:
  workspace: jianmu-el
workflow:
  name: jianmu-el ci
  ref: jianmu_el_ci
  description: jianmu-el ci
  Start:
    type: start
    targets:
      - Git_Clone
  Git_Clone:
    type: git_clonev1.0
    sources:
      - Start
    targets:
      - Mvn_Deploy
    param:
      workspace: ${workspace}
      commit_branch: master
      remote_url: https://gitee.com/jianmu_dev/jianmu-el
  Mvn_Deploy:
    type: maven_deploy_to_nexusv1.0
    sources:
      - Git_Clone
    targets:
      - End
    param:
      nexus_username: ((nexus.Username))
      nexus_password: ((nexus.Password))
      maven_snapshot_id: maven-snapshots
      maven_public_id: maven-public
      maven_release_id: maven-releases
      maven_snapshot_url: https://nexus.jianmu.dev/repository/maven-snapshots/
      maven_public_url: https://nexus.jianmu.dev/repository/maven-public/
      maven_release_url: https://nexus.jianmu.dev/repository/maven-releases/
      workspace: ${workspace}
  End:
    type: end
    sources:
      - Mvn_Deploy
